#pragma once

#include <QMainWindow>
#include <QTimer>

#include "date_time_plot_controller.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_btnStartOrPause_clicked();

    void onRealTimeDataUpdate();

private:
    void initPlot();
private:
    Ui::MainWindow *ui;
    QTimer m_dataTimer;

    QVector<double> m_graphKey1;
    QVector<double> m_graphData1;
    QVector<double> m_graphKey2;
    QVector<double> m_graphData2;

    DateTimePlotController *m_plotController;
};
